package com.kushuigu.dao.impl;

import com.kushuigu.dao.BookDao;
import lombok.Setter;

import java.util.*;

public class BookDaoImpl implements BookDao {
    @Setter
    private int[] array;
    @Setter
    private List<String> list;
    @Setter
    private Set<String> set;
    @Setter
    private Map<String,String> map;
    @Setter
    private Properties properties;

    @Override
    public void save() {
        System.out.println("book dao save ...");
        System.out.println("遍历数组:" + Arrays.toString(array));
        System.out.println("遍历List" + list);
        System.out.println("遍历Set" + set);
        System.out.println("遍历Map" + map);
        System.out.println("遍历Properties" + properties);
        System.out.println("book dao save.");
    }

    private BookDaoImpl() {
        System.out.println("book dao constructor is running ...");
    }

    public void init() {
        System.out.println("init.");
    }

    public void destroy(){
        System.out.println("destroy.");
    }

}
